<?php

/**
 * Extension methods 
 * @author Bendsoft
 */
class CamelotExtensions {

    /**
     * Return the type of object
     * @param array|object|unknown $var
     * @return string
     */
    public static function getVariableType($var) {
        switch (gettype($var)) {
            case "array":
                return "array";
                break;
            case "object":
                return get_class($var);
                break;
        }
    }
}

?>
